package com.wandian.cqcsk.mvvm.mine.invite.invitereward.inviterule;

import android.os.Bundle;

import androidx.databinding.DataBindingUtil;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.mylib.libcore.config.RouterConfig;
import com.mylib.libcore.mvvm.BaseMVVMActivity;
import com.mylib.libcore.utils.StatusBarUtils;
import com.wandian.cqcsk.R;
import com.wandian.cqcsk.databinding.ActivityInviteRuleBinding;

/**
 * @author Administrator
 * @date 2019/12/18-14:28
 * @description  邀请规则
 **/
@Route(path = RouterConfig.ROUTER_ACTIVITY_INVITE_RULE)
public class InviteRuleActivity extends BaseMVVMActivity<InviteRuleActivityViewModel> {
    private ActivityInviteRuleBinding dataBinding;
    @Override
    public void init(Bundle savedInstanceState) {
        dataBinding = DataBindingUtil.setContentView(this, R.layout.activity_invite_rule);
        dataBinding.setLifecycleOwner(this);
        dataBinding.setViewModel(mViewModel);
        initViewData();
        initClink();
    }
    private void initViewData(){
        //设置状态颜色和字体黑色
        StatusBarUtils.with(this,false)
                .setIsActionBar(false)
                .clearActionBarShadow()
                .setDrawable(getResources().getDrawable(com.mylib.libcore.R.drawable.sys_color))
                .init();
        dataBinding.bindSysToolBar.toolBarTvTitle.setText("奖励规则");

    }
    private void initClink(){
        dataBinding.bindSysToolBar.toolBarIvBack.setOnClickListener(v ->    finish());
    }


}
